/**
 * 
 */
package tests;

import java.util.Date;
import java.awt.Point;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Hashtable;

import time.Heure;

import map.Airport;

import core.Avion;
import core.Billet;
import core.CarteFidelite;
import core.Client;
import core.PlanDeVol;
import core.Trajet;
import core.compagnie.CompAerienne;
import core.vols.Vol;
import core.vols.VolInstance;

/**
 * @author horneth
 *
 */
public class Scenario1 {

	/**
	 * @param args
	 */
	
	public Scenario1() {
		
	}
	
	public void start(){
		try {
		// TODO Auto-generated method stub
		CompAerienne c1 = new CompAerienne("AirElec");
		CompAerienne c2 = new CompAerienne("AirFrance");
		
		Avion a1 = new Avion(c1,"Avion1");
		Avion a2 = new Avion(c2, "Avion2");
		
		Airport air1 = new Airport(new Point(5,6), "A1");
		Airport air2 = new Airport(new Point(5,6), "A2");
		Airport air3 = new Airport(new Point(5,6), "A3");
		Airport air4 = new Airport(new Point(5,6), "A4");
		Airport air5 = new Airport(new Point(5,6), "A5");
		Airport paris = new Airport(new Point(5,6), "Paris");
		
		ArrayList<Airport> l1 = new ArrayList<Airport>();
		l1.add(air1);
		l1.add(air2);
		l1.add(air3);
		l1.add(air4);
		
		PlanDeVol p1 = new PlanDeVol();
		p1.generate(l1);		
		a1.setPlanDeVol(p1);
		
		ArrayList<Airport> l2 = new ArrayList<Airport>();
		l2.add(air4);
		l2.add(air5);
		l2.add(paris);

		
		PlanDeVol p2 = new PlanDeVol();
		p2.generate(l2);
		
		a2.setPlanDeVol(p2);
		

		

		}catch (Exception e) {
			
		}
	


	}
	
}
